FROM  yinxianghuayunyanfabu-docker.pkg.coding.net/registry/release/alpine-jre21-amd64:v39
MAINTAINER topkj.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /opt/app
WORKDIR /opt/app
ARG JAR_FILE=./*.jar
COPY ${JAR_FILE} ./application.jar
EXPOSE 80
ENTRYPOINT ["sh","-c","java -Djava.security.egd=file:/dev/./urandom -Dspring.main.lazy-initialization=false $JAVA_OPTS -jar ./application.jar"]
